/**
 * Created by meijun on 17-8-29.
 */


export  class NotificationManager {


    constructor() {

        //初始化消息的容器
        this.message = [];
    }

    /**
     * 添加一条消息
     * @param message
     */
    addNotification(message){
        this.message.push(message);
    }

    /**
     * 打印消息管理器中的消息
     */
    logNotification(){
        console.log('message count:',this.message.length,this.message);
    }

}
export let  notifications = new NotificationManager();


